<?php

//Yii::import('zii.widgets.CPortlet');

class RecentSms extends Portlet
{
	public $title='SMS Center (0800 5000)';
	public $maxSMS=20;

	public function getRecentSms()
	{
		return Sms::model()->findRecentSms($this->maxSMS);
	}

	protected function renderContent()
	{
		$this->render('recentSms');
	}
}